package com.yanyeori.webtest.config;

import com.yanyeori.webtest.service.BankService;
import com.yanyeori.webtest.service.LoginLogService;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author chenkuan
 * @since 2022/7/7 007 14:51
 */
@Service
public class WebTestConfig implements InitializingBean {
    @Autowired
    private BankService bankService;
    @Autowired
    private LoginLogService loginLogService;

    private static WebTestConfig instance;

    @Override
    public void afterPropertiesSet() throws Exception {
        instance = this;
    }

    public static WebTestConfig getInstance() {
        return instance;
    }

    public BankService getBankService() {
        return bankService;
    }

    public LoginLogService getLoginLogService() {
        return loginLogService;
    }
}
